package com.es.gateway.sdk.app.sms;

import com.es.gateway.sdk.util.GsonUtil;

/**
 * 发送短信，响应对象
 */
public class SendmsgResponse {
    /**
     * 错误码
     */
    private String code;
    /**
     * 结果描述
     */
    private String msg;
    /**
     * 此次短信发送的ID
     */
    private String externalId;
    /**
     * 此次请求ID
     */
    private String requestId;

    public String toJsonStr(){
        return GsonUtil.getAllJson().toJson(this);
    }

    public static SendmsgResponse fromJsonStr(String JsonStr) {
        return GsonUtil.getAllJson().fromJson(JsonStr, SendmsgResponse.class);
    }
}
